From: Colin Walters Date: Tue, 25 Nov 2008 23:50:00 +0000 (+0000) Subject: Search executables as well X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11555 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cedab080189857c0697d318a0e1ccc401eb23c1b;p=gnome-shell.git Search executables as well We want "gedit" to find GEdit, which doesn't contain its name in either the name or description. svn path=/trunk/; revision=85 --- diff --git a/js/ui/appdisplay.js b/js/ui/appdisplay.js index 649a905c8..07a6af4c6 100644 --- a/js/ui/appdisplay.js +++ b/js/ui/appdisplay.js @@ -203,12 +203,17 @@ AppDisplay.prototype = { if (search == null || search == '') return true; let name = appinfo.get_name().toLowerCase(); - let description = appinfo.get_description(); - if (description) description = description.toLowerCase(); if (name.indexOf(search) >= 0) return true; - if (description && description.indexOf(search) >= 0) - return true; + let description = appinfo.get_description(); + if (description) { + description = description.toLowerCase(); + if (description.indexOf(search) >= 0) + return true; + } + let exec = appinfo.get_executable().toLowerCase(); + if (exec.indexOf(search) >= 0) + return true; return false; },